<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>发布商品</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="css/animate.css" rel="stylesheet">
    <link href="css/plugins/summernote/summernote.css" rel="stylesheet">
    <link href="css/plugins/webuploader/webuploader.css" rel="stylesheet" type="text/css" >
    <link href="css/plugins/fileinput/fileinput.css" rel="stylesheet" type="text/css" />
    <link href="css/demo/webuploader-demo.css" rel="stylesheet" type="text/css" >
    <link href="css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css" rel="stylesheet">
    <link href="css/plugins/switchery/switchery.css" rel="stylesheet">
    <link href="css/style.css?v=4.1.0" rel="stylesheet">

    <!-- 全局js -->
    <script src="js/jquery.min.js?v=2.1.4"></script>
    <script src="js/bootstrap.min.js?v=3.3.6"></script>
    <script src="js/core.js"></script>

    <!-- jQuery Validation plugin javascript-->
    <script src="js/plugins/validate/jquery.validate.min.js"></script>
    <script src="js/plugins/validate/messages_zh.min.js"></script>
  
     <!-- fileinput -->
    <script src="js/plugins/fileinput/fileinput.js"></script>
    <script src="js/plugins/fileinput/fileinput_locale_zh.js"></script>
    <!-- 日期layerDate plugin javascript -->
   <!-- <script src="js/plugins/layer/laydate/laydate.js"></script>
    <script src="js/demo/laydate-demo.js"></script>-->
    <!-- summernote -->
    <script src="js/plugins/summernote/summernote.min.js"></script>
    <script src="js/plugins/summernote/summernote-zh-CN.js"></script>
    <script src="js/demo/summernote-demo.js"></script>	
    <!-- 自定义js -->
    <script src="js/goods_add.js"></script>

</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content">       
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <form class="form-horizontal m-t" >
                            <div class="form-group" id="thisType">
                            	<div id="title_div" class="form-group" >
	                                <label class="col-sm-3 control-label">商品名称</label>
	                                <div class="col-sm-8">
	                                    <input id="title" name="title" minlength="2" type="text" class="form-control">
	                                </div>
                            	</div>
                            	<div id="title_div" class="form-group" >
	                                <label class="col-sm-3 control-label">发布商城</label>
	                                <div class="col-sm-8">
	                                <select id="goodsType" name="goodsType" style="height:31px;border-radius: 3px;border: solid 1px #ddd;" >
                                      <option value="1">骑手商城</option>
                                      <option value="2">商家商城</option>
                                    </select>
	                                </div>
                            	</div>
                            	<div id="title_div" class="form-group" >
	                                <label class="col-sm-3 control-label">市场价</label>
	                                <div class="col-sm-8">
	                           			<input id="marketPrice" name="unitNum" minlength="2" type="text" class="form-control">
                                	</div>
                            	</div>
                            	<div id="title_div" class="form-group" >
	                                <label class="col-sm-3 control-label">单价</label>
	                                <div class="col-sm-8">
	                           			<input id="unitPrice" name="unitNum" minlength="2" type="text" class="form-control">
                                	</div>
                            	</div>
                            	<form class="form-horizontal m-t" id="commentForm">
	                             	<span id="thisId" style="display: none;"></span>
	                              	<div  class="form-group" >
		                                <label class="col-sm-3 control-label">商品规格</label>
		                                <div class="col-sm-8">
		                                    <input id="unitStandard" name="unitNum" minlength="2" type="text" class="form-control">
	                                	</div>
	                            	</div>
		                            <div id="jiu_picture_div" class="form-group" style="display: none;">
		                                <label class="col-sm-3 control-label">旧活动图：</label>
		                                <div class="col-sm-8">
		                                    <span id="goodsUrl" name="goodsUrl" class="footable-sort-indicator"></span>
		                                </div>
		                            </div>
		                            <div class="form-group">
		                                <label class="col-sm-3 control-label">上传图片：</label>
		                                <div class="col-sm-8">
							                <!--<div class="ibox-content">-->
						                        <div class="page-container">
						                            <input type="file" id="file_upload" name="files">
						                        </div>
						                   <!-- </div>-->
							            </div>
		                                <span style="display: none;" id="uploadSuccessImg"></span>
		                            </div>
		                           	<div class="form-group">
		                                <label class="col-sm-3 control-label">商品说明</label>
		                                <div class="col-sm-8">
							                <!--<div class="ibox-content">-->
						                        <div class="page-container">
						                             <div class="summernote" id="goodsDetail" name="textcontent"></div>
						                        </div>
						                        
						                   <!-- </div>-->
							            </div>
		                           </div>
                           	</div>                           
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-3">
                                    <button class="btn btn-primary" type="button" onclick="onSave()">发布</button>
                                    <button class="btn btn-primary" type="reset" onclick="clear()">重置</button>
                                </div>
                            </div>
                            
                        </form>
                    </div>
                </div>
            </div>
            </div>
        </div>

    </div>        
    
</body>

</html>
